package org.thanos.demo.entity;

public class LogEvent<T> {

    private String topic;
    private T content;

    public LogEvent() {
        super();
    }

    public LogEvent(String topic, T content) {
        this.topic = topic;
        this.content = content;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "LogEvent{" +
                "topic='" + topic + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
